<!DOCTYPE html>
<!-- saved from url=(0062)file:///C:/Users/Administrator/Desktop/%E6%96%87%E7%AB%A0.html -->
<html lang="zh-CN" class="pixel-ratio-1"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>{$chapter[0][title]}</title>
    
    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
    
    <link rel="dns-prefetch" href="https://wepay.weipinchu.com/" />
    <script src="https://cdn.bootcss.com/jquery/2.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/Cookies.js/1.2.1/cookies.js"></script>
    <link href="https://cdn.bootcss.com/weui/0.4.3/style/weui.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/jquery-weui/0.8.2/css/jquery-weui.min.css" rel="stylesheet">
    <link href="https://ommdq027l.qnssl.com/static/css/front.css?v=3" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://at.alicdn.com/t/font_v0v5asvoc4gnl8fr.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/OwlCarousel2/2.2.0/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/OwlCarousel2/2.2.0/assets/owl.theme.default.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/OwlCarousel2/2.2.0/owl.carousel.min.js"></script>
    <style>
    <literal>
      body,html{-webkit-tap-highlight-color:transparent}body{overflow-x:hidden;background-color:#fbf9fe}.container{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.container>div{background-color:#fbf9fe}.hd{padding:1.5em 0}.page_title{text-align:center;font-size:24px;color:#3cc51f;font-weight:400;margin:0 15%}.page_desc{text-align:center;color:#888;font-size:14px}.bd.spacing{padding:0 15px}.home{padding-bottom:30px}.button .page_title{color:#225fba}.button .bd{padding:0 15px}.button .button_sp_area{padding:10px 0;width:60%;margin:0 auto;text-align:justify;text-justify:distribute-all-lines;font-size:0}.button .button_sp_area:after{display:inline-block;width:100%;height:0;font-size:0;margin:0;padding:0;overflow:hidden;content:"."}.cell .page_title{color:#225fba}.cell .bd{padding-bottom:30px}.dialog .bd,.toast .bd{padding:120px 15px 0}.msg{background-color:#fff}.panel .bd{padding-bottom:20px}.article{background-color:#fff}.article .page_title{color:#de7c23}.icons{background-color:#fff;text-align:center}.icons .page_title{color:#3e24bd}.icons .bd{padding:30px 0;text-align:center}.icons .icon_sp_area{padding:10px 20px;text-align:left}.icons i{margin:0 5px 10px}.tabbar{height:100%}.search_show{display:none;margin-top:0;font-size:14px}.search_show .weui_cell_bd{padding:2px 0 2px 20px;color:#666}.icon{display:inline-block;width:28px;height:28px;vertical-align:middle}.icon_button{background:url(images/icon_nav_button.png) no-repeat;background-size:28px 28px}.icon_cell{background:url(images/icon_nav_cell.png) no-repeat;background-size:28px 28px}.icon_toast{background:url(images/icon_nav_toast.png) no-repeat;background-size:28px 28px}.icon_dialog{background:url(images/icon_nav_dialog.png) no-repeat;background-size:28px 28px}.icon_progress{background:url(images/icon_nav_progress.png) no-repeat;background-size:28px 28px}.icon_msg{background:url(images/icon_nav_msg.png) no-repeat;background-size:28px 28px}.icon_article{background:url(images/icon_nav_article.png) no-repeat;background-size:28px 28px}.icon_actionSheet{background:url(images/icon_nav_actionSheet.png) no-repeat;background-size:28px 28px}.icon_icons{background:url(images/icon_nav_icons.png) no-repeat;background-size:28px 28px}.icon_panel{background:url(images/icon_nav_panel.png) no-repeat;background-size:28px 28px}.icon_tab{background:url(images/icon_nav_tab.png) no-repeat;background-size:28px 28px}.icon_search_bar{background:url(images/icon_nav_search_bar.png) no-repeat;background-size:28px 28px}@-webkit-keyframes a{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes a{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@-webkit-keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}}@keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}}.enter,.leave{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.enter{-webkit-animation:a .2s forwards;animation:a .2s forwards}.leave{-webkit-animation:b .25s forwards;animation:b .25s forwards}
   	</literal>
    </style>
  </head>
  <body class="page-read color-comfortable ">
    <style>
    .weui_article {
        margin-bottom: 30px;
        font-size: 18px;
        font-weight: normal;
        line-height: 170%;
    }

    .weui_article p {
        margin: .7em 0;
        text-indent: 2em;
    }    
    .recharge{position: fixed;z-index: 9999999;left: 0;top: 0;right: 0;bottom: 0;background-color: rgba(0,0,0,.8);display: none;}
	.recharge .box{margin: auto;width: 80%;height: 100%;padding-top: 20%;text-align: center;}
	.recharge .box .reico{width: 70%;margin: auto;}
	.recharge .box .text{font-size: 1.6em;width: 100%;color: #F8F8F8;margin: 10px 0px 20px 0px;}
	.recharge .box .text .textsmall{font-size: .65em;}
</style>
<div class="recharge">
	<div class="box">
		<div style="width: 100%;height: 25%;">
			<div class="text">
				<p>关注作者授权公众号继续阅读</p>
				<p class="textsmall">由于版权问题，请关注后继续阅读</p>
			</div>
			<div class="reico"><img src="__PUBLIC__/attached/other/logo.jpg" width="100%"/></div>
			<div class="text">
				<p>长按上图识别二维码关注</p>
				<p class="textsmall">或搜索xs7971关注"最全小说"</p>
			</div>
		</div>
	</div>
</div>
<div class="container" style="padding-bottom:0">
    <div class="article" id="article-main" style="overflow-y:auto">
        <div class="hd">
        	<input type="hidden" id="is_show" value="{$is_show}" />
            <h1 class="page_title">{$chapter[0][chapter]}  {$chapter[0][title]}
</h1>
        </div>
        <div class="bd">
            <div class="novel-meta clearfix">
                <div class="novel-avatar">
                    <img src="{$chapter[0][novel_mini_img]}" onerror="this.src='/Public/attached/other/img_error.jpg'">
                </div>
                <div class="novel-info">
                    <a class="novel-title" href="#">{$chapter[0][novel_name]}</a>
                </div>
            </div>
            <article class="weui_article">
                <section>
                	{$chapter[0][content]}
                </section>
            </article>
            <div class="article-foot-actions">
            	<if condition="$chapter[1]['title'] neq ''">
	                <span style="width:48%;display:inline-block;">
	                	<a class="weui_btn weui_btn_primary" href="/Home/Novel/show/id/{$chapter[1]["id"]}/novel_id/{$chapter[1]["novel_id"]}">下一章节</a>
	                </span>
	                <span style="width:48%;display:inline-block;">
	                    <a id="menu" class="weui_btn weui_btn_primary" href="javascript:;"><i class="fa fa-bars"></i> 菜单</a>
	                </span>	                
	            <else />
	            	<span style="width:96%;display:inline-block;">
	                    <a id="menu" class="weui_btn weui_btn_primary" href="javascript:;"><i class="fa fa-bars"></i> 菜单</a>
	                </span>
                </if>

            </div>
        </div>
    </div>
</div>

<script type="text/html" id="template-dialog-fonts">
    <div class="weui_panel weui_panel_access">
        <a href="javascript:;" data-size="small" class="weui_grid fonthover">
            <p class="weui_grid_label">
                小
            </p>
        </a>
        <a href="javascript:;" data-size="medium" class="weui_grid fonthover">
            <p class="weui_grid_label">
                中
            </p>
        </a>
        <a href="javascript:;" data-size="large" class="weui_grid fonthover">
            <p class="weui_grid_label">
                大
            </p>
        </a>
    </div>
</script>
<script type="text/html" id="template-dialog-bg">
    <div class="weui_panel weui_panel_access">
        <a href="javascript:;" data-color="none" class="weui_grid bghover">
            <p class="weui_grid_label">
                无
            </p>
        </a>
        <a href="javascript:;" data-color="comfortable" class="weui_grid bghover">
            <p class="weui_grid_label">
                舒适
            </p>
        </a>
        <a href="javascript:;" data-color="dark" class="weui_grid bghover">
            <p class="weui_grid_label">
                黑夜
            </p>
        </a>
    </div>
</script>

<script src="./文章_files/jweixin-1.0.0.js.下载"></script>
<script>
	var nums=$(".weui_article").height()/2;
	$(document).on("mousewheel",function(){
		return false;
	})
	var events=$("#is_show").val()
	$(document).on("scroll",function(){
		if(events==0&&$(document).scrollTop()>=nums){
			$(".recharge").show();
			$(document).on("touchmove",function(){
				return false
			})
		}
	})
    var articleId = 31139;
    var __title = "第一章  马路杀手";
    var _lk = "";
    var __BASE = "https://c251.818tu.com/";

    var prev_article_id = 0;
    var novel_id = 45;

    function addBookmark() {
        $.ajax({
            url: '/Home/Novel/addbooksign?chapter_id={$chapter[0]["id"]}&&novel_id={$chapter[0]["novel_id"]}',
            type: 'GET',
            contentType: 'application/json'
        })
            //.then(function () {
                $.toast('书签添加成功', 1000);
            //});
    }

    function openFontsDialog() {
        $.modal({
            title: '字体大小',
            text: $('#template-dialog-fonts').html(),
            buttons: [
                { text: '确定' }
            ]
        });
    }

    function openBackgroundDialog() {
        $.modal({
            title: '背景颜色',
            text: $('#template-dialog-bg').html(),
            buttons: [
                { text: '确定' }
            ]
        });
    }

    function applyFontSize(size) {
        switch (size) {
            case 'large':
                $(".weui_article").css('font-size', "24px");
                break;
            case 'medium':
                $(".weui_article").css('font-size', "20px");
                break;
            case 'small':
                $(".weui_article").css('font-size', "16px");
                break;
        }
    }

    function applyBackground(bg) {
        $('body').removeClass('color-dark').removeClass('color-comfortable');
        if (bg !== 'none') {
            $('body').addClass('color-' + bg);
        }
    }

    $(document).ready(function () {
        $('#menu').click(function () {
            var actions = [];

            actions.push({
                text: '<i class="fa fa-font"></i> 字体大小',
                onClick: openFontsDialog
            });
            actions.push({
                text: '<i class="fa fa-adjust"></i> 背景颜色',
                onClick: openBackgroundDialog
            });
            actions.push({
                text: '<i class="fa fa-bookmark"></i> 添加书签',
                onClick: addBookmark
            });

            if (prev_article_id) {
                actions.push({
                    text: '<i class="fa fa-chevron-left"></i> 上一章节',
                    onClick: function () {
                        location.href = '/read/index/' + prev_article_id;
                    }
                })
            }

            actions.push({
                text: '<i class="fa fa-list-ul"></i> 返回目录',
                onClick: function () {
                    location.href = '/Home/Novel/novelcatalog/id/{$chapter[0][novel_id]}';
                }
            });

            actions.push({
                text: '<i class="fa fa-home"></i> 返回首页',
                onClick: function () {
                    location.href = '/';
                }
            });

            $.actions({
                actions: actions
            });
        });

        $(document).on('click', '.bghover', function () {
            var bg = $(this).data('color');
            applyBackground(bg);
            Cookies.set('bg', bg, { expires: 3 * 365 * 24 * 60 * 60 });
            return false;
        });

        $(document).on('click', '.fonthover', function () {
            var size = $(this).data('size');
            applyFontSize(size);
            Cookies.set('size', size, { expires: 3 * 365 * 24 * 60 * 60 });
            return false;
        });

        // read user settings from cookie
        if (Cookies.get('size')) {
            applyFontSize(Cookies.get('size'));
        }

//      wx.config({"debug":false,"beta":false,"appId":"wxf38c10b5cc742269","nonceStr":"E22fqhJafM","timestamp":1492417438,"url":"https:\/\/c251.818tu.com\/read\/index\/31139","signature":"5c4ec1d55a83f4c22cbb81083ff619b4f059fc0e","jsApiList":["onMenuShareTimeline","onMenuShareAppMessage"]});
//      wx.ready(function () {
//          var _share = {
//              title: __title,
//              desc: __title,
//              link: _lk,
//              imgUrl: 'https://c251.818tu.com/https://ommdq027l.qnssl.com/novels/45-2.jpg',
//              success: function () {
//              },
//              cancel: function () {
//              }
//          };
//          wx.onMenuShareTimeline(_share);
//          wx.onMenuShareAppMessage(_share);
//      });
    });
</script>

    
    <script src="https://cdn.bootcss.com/jquery-weui/0.8.2/js/jquery-weui.min.js"></script>
    <div style="display:none">
    <script src="https://s13.cnzz.com/z_stat.php?id=1261966598&web_id=1261966598" language="JavaScript"></script>
    </div>

</body></html>